<?php

global $mosConfig_absolute_path;

$mosConfig_absolute_path = $_SERVER['joomlacacheabs'];
chdir($mosConfig_absolute_path);

if(file_exists($mosConfig_absolute_path.'/components/com_sef/sef.php')) {
	require_once ($mosConfig_absolute_path.'/components/com_sef/sef.php');
} else {
	require_once ($mosConfig_absolute_path.'/includes/sef.php');
}

$path = $mosConfig_absolute_path.'/components/com_joomlacache';
$mosConfig_absolute_path = $path;
chdir($path);

$_SERVER['CACHE_REQUEST_URI'] = JoomlaCacheConvertLink($_SERVER['REQUEST_URI']);

?>
